//
//  jsonWriter.h
//  iCodeMac
//
//  Created by Andrew Barry on 10/04/09.
//  Copyright 2009 Barry Computer Services. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@interface jsonWriter : NSObject {
	NSMutableString *buffer;
}
-(id)init;
-(void)writeString:(NSString *)str;
-(void)writeInt:(int) v;
-(void)writeKey:(NSString *)str;
-(void)writeItemSeparator;
-(void)writeStartObject;
-(void)writeEndObject;
-(void)writeStartArray;
-(void)writeEndArray;
-(NSString *)finish;
-(void)writeNSArray: (NSArray *) arr;
-(void)writeNSDictionary: (NSDictionary *) defn;
-(void)writeNSObject: (NSObject *) obj;

@end
